﻿using STF.Blog.Dtos;

namespace STF.Blog.IService
{
    /// <summary>
    /// 账户表
    /// </summary>
    public interface IUsersService
    {
        public Task<int> AddUsersAsync(string email,string pwd,string nickname,int state);
        public Task<int> UpdateUsersAsync(int id, string email, string pwd, string nickname, int state);
        public Task<int> PutTrashAsync(int id);
        public Task<int> RestoreAsync(int id);
        public Task<int> DeleteUsersAsync(int id);
        public Task<List<UsersDto>> GetAllUsersAsync(int deleteId = 1);
        public Task<List<UsersDto>> GetByNameAsync(string nickname, int deleteId = 1);
        public Task<UsersDto> GetByIdAsync(int id);
        public Task<int> LoginAsync(string account,string pwd);
        public Task<int> GetUserByNameAsync(string nickname, int deleteId = 1);
    }
}